/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * NewActivityWindow.java
 *
 * Created on Mar 9, 2011, 11:03:17 PM
 */

package GUIforms;

/**
 *
 * @author danielsl
 */
public class NewActivityWindow extends javax.swing.JFrame {

    /** Creates new form NewActivityWindow */
    public NewActivityWindow() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        createActivityPanel = new javax.swing.JPanel();
        goalsLabel = new javax.swing.JLabel();
        jScrollPane5 = new javax.swing.JScrollPane();
        goalsTextArea = new javax.swing.JTextArea();
        activityGoalsLabel = new javax.swing.JLabel();
        placeTextField = new javax.swing.JTextField();
        startDateLabel = new javax.swing.JLabel();
        startDateTextField = new javax.swing.JTextField();
        strekLabel = new javax.swing.JLabel();
        endDateTextField = new javax.swing.JTextField();
        responsibleLabel = new javax.swing.JLabel();
        statusLabel = new javax.swing.JLabel();
        statusTextField = new javax.swing.JTextField();
        activityDescLabel = new javax.swing.JLabel();
        jScrollPane6 = new javax.swing.JScrollPane();
        descriptionTextArea = new javax.swing.JTextArea();
        activityListCheckBox = new javax.swing.JCheckBox();
        createActivityButton = new javax.swing.JButton();
        endRegisterActivitesButton = new javax.swing.JButton();
        boundToSessionLabel = new javax.swing.JLabel();
        bindToSessionDropDown = new javax.swing.JComboBox();
        responsibleDropDown = new javax.swing.JComboBox();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        goalsLabel.setFont(new java.awt.Font("Lucida Grande", 1, 13)); // NOI18N
        goalsLabel.setText("Mål:");

        jScrollPane5.setFocusable(false);

        goalsTextArea.setColumns(20);
        goalsTextArea.setFont(new java.awt.Font("Lucida Grande", 0, 11)); // NOI18N
        goalsTextArea.setLineWrap(true);
        goalsTextArea.setRows(5);
        goalsTextArea.setWrapStyleWord(true);
        goalsTextArea.setFocusable(false);
        jScrollPane5.setViewportView(goalsTextArea);

        activityGoalsLabel.setFont(new java.awt.Font("Lucida Grande", 1, 13));
        activityGoalsLabel.setText("Sted:");

        placeTextField.setFont(new java.awt.Font("Lucida Grande", 0, 11));
        placeTextField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                placeTextFieldActionPerformed(evt);
            }
        });

        startDateLabel.setFont(new java.awt.Font("Lucida Grande", 1, 13));
        startDateLabel.setText("Dato:");

        startDateTextField.setFont(new java.awt.Font("Lucida Grande", 1, 13)); // NOI18N
        startDateTextField.setText("yyyy-mm-dd");
        startDateTextField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                startDateTextFieldActionPerformed(evt);
            }
        });

        strekLabel.setText("-");

        endDateTextField.setFont(new java.awt.Font("Lucida Grande", 1, 13)); // NOI18N
        endDateTextField.setText("yyyy-mm-dd");
        endDateTextField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                endDateTextFieldActionPerformed(evt);
            }
        });

        responsibleLabel.setFont(new java.awt.Font("Lucida Grande", 1, 13)); // NOI18N
        responsibleLabel.setText("Ansvarlig:");

        statusLabel.setFont(new java.awt.Font("Lucida Grande", 1, 13)); // NOI18N
        statusLabel.setText("Status:");

        statusTextField.setFont(new java.awt.Font("Lucida Grande", 0, 11));

        activityDescLabel.setFont(new java.awt.Font("Lucida Grande", 1, 13));
        activityDescLabel.setText("Beskrivelse:");

        descriptionTextArea.setColumns(20);
        descriptionTextArea.setFont(new java.awt.Font("Lucida Grande", 0, 11));
        descriptionTextArea.setLineWrap(true);
        descriptionTextArea.setRows(5);
        descriptionTextArea.setWrapStyleWord(true);
        jScrollPane6.setViewportView(descriptionTextArea);

        activityListCheckBox.setText("Aktivitetsliste");
        activityListCheckBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                activityListCheckBoxActionPerformed(evt);
            }
        });

        createActivityButton.setText("Opprett aktivitet");

        endRegisterActivitesButton.setText("Avslutt");

        boundToSessionLabel.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        boundToSessionLabel.setText("Knyttes til sesjon:");

        bindToSessionDropDown.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        responsibleDropDown.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        org.jdesktop.layout.GroupLayout createActivityPanelLayout = new org.jdesktop.layout.GroupLayout(createActivityPanel);
        createActivityPanel.setLayout(createActivityPanelLayout);
        createActivityPanelLayout.setHorizontalGroup(
            createActivityPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(createActivityPanelLayout.createSequentialGroup()
                .addContainerGap()
                .add(createActivityPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(goalsLabel)
                    .add(createActivityPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, bindToSessionDropDown, 0, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, boundToSessionLabel))
                    .add(createActivityPanelLayout.createSequentialGroup()
                        .add(startDateTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 115, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(strekLabel)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .add(endDateTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(startDateLabel)
                    .add(createActivityPanelLayout.createSequentialGroup()
                        .add(createActivityButton)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(endRegisterActivitesButton, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 95, Short.MAX_VALUE))
                    .add(activityListCheckBox)
                    .add(responsibleDropDown, 0, 249, Short.MAX_VALUE)
                    .add(activityDescLabel)
                    .add(statusTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 249, Short.MAX_VALUE)
                    .add(jScrollPane6, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 249, Short.MAX_VALUE)
                    .add(responsibleLabel)
                    .add(placeTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 249, Short.MAX_VALUE)
                    .add(activityGoalsLabel)
                    .add(statusLabel)
                    .add(jScrollPane5, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 249, Short.MAX_VALUE))
                .add(40, 40, 40))
        );
        createActivityPanelLayout.setVerticalGroup(
            createActivityPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, createActivityPanelLayout.createSequentialGroup()
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .add(boundToSessionLabel)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(bindToSessionDropDown, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(startDateLabel)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(createActivityPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(startDateTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(strekLabel)
                    .add(endDateTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(responsibleLabel)
                .add(5, 5, 5)
                .add(responsibleDropDown, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(statusLabel)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(statusTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(activityDescLabel)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jScrollPane6, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(goalsLabel)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jScrollPane5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(activityGoalsLabel)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(placeTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(activityListCheckBox)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(createActivityPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(createActivityButton)
                    .add(endRegisterActivitesButton))
                .addContainerGap())
        );

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .addContainerGap()
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jLabel1)
                    .add(layout.createSequentialGroup()
                        .add(createActivityPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addContainerGap())))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .add(createActivityPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jLabel1)
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void placeTextFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_placeTextFieldActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_placeTextFieldActionPerformed

    private void startDateTextFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_startDateTextFieldActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_startDateTextFieldActionPerformed

    private void endDateTextFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_endDateTextFieldActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_endDateTextFieldActionPerformed

    private void activityListCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_activityListCheckBoxActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_activityListCheckBoxActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new NewActivityWindow().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel activityDescLabel;
    private javax.swing.JLabel activityGoalsLabel;
    private javax.swing.JCheckBox activityListCheckBox;
    private javax.swing.JComboBox bindToSessionDropDown;
    private javax.swing.JLabel boundToSessionLabel;
    private javax.swing.JButton createActivityButton;
    private javax.swing.JPanel createActivityPanel;
    private javax.swing.JTextArea descriptionTextArea;
    private javax.swing.JTextField endDateTextField;
    private javax.swing.JButton endRegisterActivitesButton;
    private javax.swing.JLabel goalsLabel;
    private javax.swing.JTextArea goalsTextArea;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JTextField placeTextField;
    private javax.swing.JComboBox responsibleDropDown;
    private javax.swing.JLabel responsibleLabel;
    private javax.swing.JLabel startDateLabel;
    private javax.swing.JTextField startDateTextField;
    private javax.swing.JLabel statusLabel;
    private javax.swing.JTextField statusTextField;
    private javax.swing.JLabel strekLabel;
    // End of variables declaration//GEN-END:variables

}
